/*******************************************************************************
 *  AbstractElement class
 *******************************************************************************

// example options object
var options = {
    id: 'id',
    classes: 'classes',
    value: 'value',
}

*/

/**
 *  Represents textarea model
 */
var AbstractElement = function(options) {
    
    // this class should extend an Element class
    $.extend(true, this, new Element($('<div>')))
    
    // ------------------------------------------------------- settings
    this.defaults = {
    };
    
    var settings = this.prepareSettings(options);
    
    // ------------------------------------------------------- element creation
    this.setId(settings.id)
        .addClass(settings.classes)
        .addClass('span10 abstract');
    
    if(typeof settings.value == 'string'){
        this.setText(settings.value);
    } else if(typeof settings.value == 'object'){
        this.getElement().append(settings.value)
    }
        
        
    console.log('AbstractElement was created with id = '+this.getId());
}


